/*
 *  KFConstants.h
 *  Keyframe
 *
 *  Created by Alex Carter on 22/06/09.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef __KF_CONSTANTS__H
#define __KF_CONSTANTS__H

#ifndef DEGREES_TO_RADIANS
#define DEGREES_TO_RADIANS(__DEG__) ((__DEG__) * 0.0174532925f)
#endif

#ifndef RADIANS_TO_DEGREES
#define RADIANS_TO_DEGREES(__RAD__) ((__RAD__) * 57.2957795f)
#endif

#if TARGET_OS_IPHONE
typedef UIView KFView;
#else 
typedef NSView KFView;
#endif


typedef CGFloat KFFloat;
typedef NSPoint KFPoint;
typedef NSRect KFRect;

inline KFRect KFRectMake(KFFloat x ,KFFloat y,KFFloat w ,KFFloat h)
{
    return NSMakeRect(x, y, w, h);
}

inline KFPoint KFPointMake(KFFloat x, KFFloat y)
{
    return NSMakePoint(x, y);
}

#endif //__KF_CONSTANTS__H 